package io.gitee.kotle.android.mvvm.mvvminterface

import android.view.View
import androidx.annotation.LayoutRes
import androidx.viewbinding.ViewBinding

sealed class MvvmViewType {
    /**
     * 返回类型是资源id
     */
    open class LayoutResType(@LayoutRes val layoutRes: Int) : MvvmViewType()

    /**
     * 返回类型是viewBindig
     */
    open class ViewBindingType(val binding: ViewBinding) : MvvmViewType()

    /**
     * 返回类型是view对象
     */
    open class ViewInstanceType(val view: View) : MvvmViewType()
}